from django.contrib import admin
from django.urls import path
from .views import *
from rest_framework.routers import DefaultRouter,SimpleRouter

urlpatterns = [
]
route = DefaultRouter()# 注册路由器对象
route.register('students', StudentViewset)   # 注册路由
route.register('classes', ClassViewset)  # 注册路由
# 路由拼接
urlpatterns += route.urls